import tkinter
x = int(input())
y = int(input())
n = int(input())
master = tkinter.Tk()
canvas = tkinter.Canvas(master, bg="white", height=500, width=500)
if n == 0 and x >= 0 and x <= 500 and y >= 0 and y <= 500:
    pass
else:
    if n > 0 and x+0*n >= 0 and y+0*n >= 0 and x+20*n <= 500 and y+30*n <= 500:
        pass
    else:
        if n < 0 and x+20*n >= 0 and y+30*n >= 0 and y+0*n <= 500 and y+0*n <= 500:
            pass
        else:
            print("Размер фигуры превышает максимальный размер поля")
            exit()
canvas.create_polygon((x+0*n, y+0*n), (x+10*n, y+0*n), (x+10*n, y+10*n), (x+20*n, y+10*n), (x+20*n, y+30*n), (x+10*n, y+30*n), (x+10*n, y+20*n), (x+0*n, y+20*n), fill="magenta", outline="green")
canvas.pack()
master.mainloop()